package ooday01;
/** 学生类的测试类 */
public class StudentTest {
    public static void main(String[] args) {
        //创建一个学生对象
        Student zz = new Student("张三",21,"jsd2302","001");
        Student ll = new Student("周鹏",21);
        Student ss = new Student();



//        创建一个学生对象
        // 数据类型  引用类型变量  指向         对象
           Student      zs       =    new Student();
        //访问成员变量
        zs.name = "周鹏";
        zs.age = 21;
        zs.className = "jsd2302";
        zs.stuId = "001";
        //调用方法
        zs.study();
        zs.sayHi();
        zs.playWith("阿黎");


//        创建一个学生类
        Student ls = new Student();
        //访问成员变量
        ls.name = "李四";
        ls.age = 22;
        ls.className = "jsd2302";
        ls.stuId = "002";
        //调用方法
        ls.study();
        ls.sayHi();
        ls.playWith("张三");

        
//        创建一个学生对象
        Student ww = new Student();//给所有成员变量默认赋值
        ww.study();
        ww.sayHi();
        ww.playWith("牛逼");

        Student zp = new Student();//创建一个学生对象'
        zp.name = "蔡徐坤";
        zp.study();








    }
}
